﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Web;

namespace Model
{

    [MetadataType(typeof(LeaveApplicationLog_Metadata))]
    [DisplayName("请假单日志")]
    public partial class LeaveApplicationLog
    {
        public LeaveApplicationLog()
        {
            this.Id = Guid.NewGuid();
            this.AddDate = DateTime.Now;
            this.UserId = new Guid(HttpContext.Current.User.Identity.Name);
        }

        public class LeaveApplicationLog_Metadata
        {
            [ScaffoldColumn(false)]
            public System.Guid Id { get; set; }

            [DisplayName("状态")]
            public object StateId { get; set; }

            [DisplayName("说明")]
            [DisplayFormat(ConvertEmptyStringToNull = false)]
            public object Note { get; set; }

        }
    }
}
